{tpl head}
 
<header class="header-fix main-nav bg-black header header-lg navbar navbar-fixed-top-xs box-shadow">
  <div class="container">
    <div class="navbar-header aside-sm"> 
    <a class="btn btn-link visible-xs" href="javascript:history.back()"> <i class="icon iconfont">&#xf007a;</i> </a>
		  <div class="navbar-brand">{$title}查询结果 ({$total})</div>
   </div>
  </div>
</header>
<div class="middle-box loginscreen  animated fadeInDown mt60">
   <div class="m-t">

       <a href="?c=device&a=add&id={$tid}" class="radius btn-warning" style="margin:0 auto; font-size:18px;width:80%;padding:10px 40px;text-align: center;display:block;margin-top:10px;">添加设备</a>

  <div class="list-group">
      {loop $list $v}
       <div class="list-group-item regitem" onmouseover="this.style.cursor='pointer'" onclick="document.location='?c=device&a=view&id={$v.id}';">
        <div class="iptbg s-list">
            <p><label class="col-xs-4">设备名称：</label>{$v.name}</p>
            <p><label class="col-xs-4">品牌/型号：</label>{$v.brand_name}/{$v.model}</p>
            <p><label class="col-xs-4">责任人：</label>{$v.person}</p>
            <p><label class="col-xs-4">设备状态：</label>{$status[$v->status_id]}</p>
            {sql sql=select update_time,status from __device_mod where device_id=$v->id&num=1&return=data}
            {if $data.update_time && $data.status==0}<p style="color:#f37b1d"><label class="col-xs-4 red">修改日期：</label>{function=date('Y-m-d',$data.update_time)}</p>{/if}
          </div>
      </div>
      {/loop}


    </div>

   </div>
</div>
{tpl foot}